<template>
	<view>
		<u-modal v-model="show" :title-style="{color: 'red'}">
			<view class="slot-content">
				<rich-text :nodes="content"></rich-text>
				
    <!-- <u-parse :content="article" @preview="preview" @navigate="navigate" ></u-parse> -->
			</view>
		</u-modal>
		<u-button @click="open">
			打开模态框
		</u-button>
	</view>
</template>
	
<script>
	 // import uParse from '../u-parse/u-parse.vue';

	export default {
		// components: {
		// 	  uParse
		// 	},
		data() {	
			return {
				show: false,
				article: `
					空山新雨后<br>
					天气晚来秋
				`
			}
		},
		methods: {
			open() {
				this.show = true;
			}
		}
	}
</script>
<style lang="scss" scoped>
	.slot-content {
		font-size: 28rpx;
		color: $u-content-color;
		padding-left: 30rpx;
	}
</style>